import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
	state:{
		songID:"",
		curSong:"",
		curTitle:"",
		curInfo:"",
		bof:true,
		musicIndex:'',
		musicList:[]
	},
	
	mutations:{
		changeid(s,b){
			s.songID=b;
		},
		changSong(s,p){
			s.curSong = p;
		},
		changtitle(s,p){
			s.curTitle = p;
		},
		changinfo(s,p){
			s.curInfo = p;
		},
		//播放
		bofo(s,p){
			s.bof = p;
		},
		musicIndex(s,b){
			s.musicIndex=b
		},
		musicList(s,b){
			s.musicList=b
		}
	}
})